package com.ds.infrastructure.hyperspace.common;

import lombok.Getter;

/**
 * @author  Weishaoying
 */
public enum TargetEndpointStreamStatus {

    /**
     * Connect ignore
     */
    CONNECT_IGNORE(0),

    /**
     * Connect to target failed
     */
    CONNECT_FAILED(1),

    /**
     * Stream init
     */
    INIT(2),

    /**
     * Is connecting
     */
    CONNECTING(3),

    /**
     * Can use
     */
    IDLE(4),

    /**
     * acquired for using
     */
    ACQUIRED(5),

    /**
     * Is closed
     */
    CLOSED(6);

    @Getter
    private int codeNum;

    TargetEndpointStreamStatus(int codeNum) {
        this.codeNum = codeNum;
    }


}
